home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / pcboard / gamble11.zip / LUCK2.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1994-05-04  |  3KB  |  147 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     Integer  INTEGER001
  20.     String   STRING001
  21.     String   STRING002
  22.     String   STRING003
  23.  
  24. ;------------------------------------------------------------------------------
  25.  
  26.     :LABEL001
  27.     STRING002 = 0
  28.     STRING003 = "n"
  29.     Cls
  30.     PrintLn 
  31.     PrintLn "   @X4C┌─────────────────────────────────────────────────────────────────────┐@X07"
  32.     PrintLn "   @X4C│             @X4EDumb Luck - 5:1 Odds - Win 5x what you bet              @X4C│@X07"
  33.     PrintLn "   @X4C│@X4E          by Brian Sweeney @ The Laser BBS (914.734.7045)            @X4C│@X07"
  34.     PrintLn "   @X4C│@XCA                 UNREGISTERED EVALUATION VERSION                     @X4C│@X07"
  35.     PrintLn "   @X4C│@X40─────────────────────────────────────────────────────────────────────@X4C│@X07"
  36.     PrintLn "   @X4C│@X4F    You may bet as much time as you have today.  If you loose, the   @X4C│@X07"
  37.     PrintLn "   @X4C│@X4F  amount of time you bet will be deducted from your time limit for   @X4C│@X07"
  38.     PrintLn "   @X4C│@X4F  today.  If you win, 5 times the amount you bet will be added to    @X4C│@X07"
  39.     PrintLn "   @X4C│@X4F  the time you have remaining for THIS CALL.  When you logoff, you   @X4C│@X07"
  40.     PrintLn "   @X4C│@X4F  will lose any time you won unless you deposit it in the time bank. @X4C│@X07"
  41.     PrintLn "   @X4C│@X40─────────────────────────────────────────────────────────────────────@X4C│@X07"
  42.     PrintLn "   @X4C│               @X4EYou have @X4F@TIMELEFT:4@ @X4Eminutes remaining today                 @X4C│@X07"
  43.     PrintLn "   @X4C└─────────────────────────────────────────────────────────────────────┘@X07"
  44.     InputStr "How many minutes do you wish to gamble (Q)uit", STRING002, 14, 2, "1234567890qQ", 8
  45.     If (STRING002 == "") Goto LABEL001
  46.     If (STRING002 == "Q") End
  47.     If (STRING002 == "0") Goto LABEL001
  48.     If (STRING002 > MinLeft()) Then
  49.         PrintLn 
  50.         PrintLn "You do not have that much time left!"
  51.         PrintLn 
  52.         PrintLn "@WAIT@"
  53.         Goto LABEL001
  54.     Endif
  55.     If ((STRING003 == "n") && (STRING002 <> 30)) Goto LABEL003
  56.     If (STRING003 == "n") Gosub LABEL002
  57.     If (Random(5) < 1) Then
  58.         INTEGER001 = STRING002 * 5
  59.         AdjTime INTEGER001
  60.         Newlines 2
  61.         Print "@X0AYou just WON "
  62.         Print INTEGER001
  63.         InputYN " minutes! Do you wish to try again", STRING001, 10
  64.         If (STRING003 == "n") Gosub LABEL002
  65.         If ((STRING001 == "Y") || (STRING001 == "y")) Goto LABEL001
  66.         If ((STRING001 == "N") || (STRING001 == "n")) End
  67.     Else
  68.         AdjTime -STRING002
  69.         Newlines 2
  70.         Print "@X0BSorry, you lost "
  71.         Print STRING002
  72.         InputYN " minutes... Do you wish to try again", STRING001, 11
  73.         If (STRING003 == "n") Gosub LABEL002
  74.         If ((STRING001 == "Y") || (STRING001 == "y")) Goto LABEL001
  75.         If ((STRING001 == "N") || (STRING001 == "n")) End
  76.     Endif
  77.     :LABEL002
  78.     PrintLn 
  79.     PrintLn "@X0FPausing for 10 seconds to encourage registration..."
  80.     Delay 182
  81.     Return
  82.     :LABEL003
  83.     AnsiPos 1, 21
  84.     PrintLn "@X0FIn this unregistered version you may only bet 30 minutes each time."
  85.     Wait
  86.     Goto LABEL001
  87.  
  88. ;------------------------------------------------------------------------------
  89. ;
  90. ; Usage report (before postprocessing)
  91. ;
  92. ; ■ Statements used :
  93. ;
  94. ;    3       End
  95. ;    1       Cls
  96. ;    1       Wait
  97. ;    10      Goto 
  98. ;    3       Let 
  99. ;    4       Print 
  100. ;    21      PrintLn 
  101. ;    13      If 
  102. ;    2       AdjTime 
  103. ;    1       InputStr 
  104. ;    2       InputYN 
  105. ;    3       Gosub 
  106. ;    1       Return
  107. ;    1       Delay 
  108. ;    2       Newlines 
  109. ;    1       AnsiPos 
  110. ;
  111. ;
  112. ; ■ Functions used :
  113. ;
  114. ;    1       -
  115. ;    1       *
  116. ;    15      ==
  117. ;    1       <>
  118. ;    1       <
  119. ;    1       >
  120. ;    2       !
  121. ;    1       &&
  122. ;    4       ||
  123. ;    1       Random()
  124. ;    1       MinLeft()
  125. ;
  126. ;------------------------------------------------------------------------------
  127. ;
  128. ; Analysis flags : A
  129. ;
  130. ; A - Adjust online time remaining ■ 5
  131. ;     Program modify the amount of online time remaining, this may
  132. ;     be a way to bypass time limits
  133. ;     ■ Search for : ADJTIME
  134. ;
  135. ;------------------------------------------------------------------------------
  136. ;
  137. ; Postprocessing report
  138. ;
  139. ;    0       For/Next
  140. ;    0       While/EndWhile
  141. ;    2       If/Then or If/Then/Else
  142. ;    0       Select Case
  143. ;
  144. ;------------------------------------------------------------------------------
  145. ;                 AEGiS Corp - Break the routines, code against the machines!
  146. ;------------------------------------------------------------------------------
  147.